<?php
require_once './includes/base.php';
$base = new Base();
$base->_init_all();
if ( $_G['uid'] <1) {
	header('location: '.url('user.php?f=login&gourl='.urlencode($_G['request_uri'])));exit;
} 

define('ADMIN_ROOT',BASE_ROOT.'admin/');
define('ADMIN_PRE',true);

$module = isset($_REQUEST['m']) ? trim($_REQUEST['m']) : 'default';
$file= isset($_REQUEST['f']) ? trim($_REQUEST['f']) : 'default';
if(file_exists(BASE_ROOT.'./admin/admin_'.$module.'.php')) {
	include(BASE_ROOT.'./admin/admin_'.$module.'.php') ;
//	$classname = ucfirst($module);
//	$m = new $classname;
//	$m->$function();
}
?>